package com.ah.shanxi_demo.convert;

import com.ah.shanxi_demo.entity.SxRegister;
import com.ah.shanxi_demo.param.input.RegisterPO;

import static com.ah.shanxi_demo.common.SXUtils.judgeStr;

/**
 * @author zt 2020/8/11
 */
public class ConvertRegister {

    public static SxRegister convertParam(RegisterPO registerPO){
        SxRegister model=new SxRegister();

        model.setCenterCode(judgeStr(registerPO.getCenterCode()));
        model.setCenterName(judgeStr(registerPO.getCenterName()));
        model.setCenterKey(judgeStr(registerPO.getCenterKey()));
        model.setCenterName(judgeStr(registerPO.getCenterName()));
        model.setGeoloc(judgeStr(registerPO.getGeoloc()));
        model.setIp(judgeStr(registerPO.getIp()));
        model.setParentCenterCode(judgeStr(registerPO.getParentCenterCode()));
        model.setServiceAddress(judgeStr(registerPO.getServiceAddress()));

        return model;
    }

}
